home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / fips11.zip / SOURCE / GLOBAL.H < prev    next >
C/C++ Source or Header  |  1994-05-25  |  2KB  |  77 lines

  1. /*
  2.     FIPS - the First nondestructive Interactive Partition Splitting program
  3.  
  4.     Module disk_io.cpp
  5.  
  6.     RCS - Header:
  7.     $Header: c:/daten/fips/source/main/RCS/global.h 1.1 1994/05/25 22:20:23 schaefer Exp schaefer $
  8.  
  9.     Copyright (C) 1993 Arno Schaefer
  10.  
  11.     This program is free software; you can redistribute it and/or modify
  12.     it under the terms of the GNU General Public License as published by
  13.     the Free Software Foundation; either version 2 of the License, or
  14.     (at your option) any later version.
  15.  
  16.     This program is distributed in the hope that it will be useful,
  17.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19.     GNU General Public License for more details.
  20.  
  21.     You should have received a copy of the GNU General Public License
  22.     along with this program; if not, write to the Free Software
  23.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24.  
  25.  
  26.     Report problems and direct all questions to:
  27.  
  28.     schaefer@rbg.informatik.th-darmstadt.de
  29. */
  30.  
  31. #ifndef GLOBAL_H
  32. #define GLOBAL_H
  33.  
  34. #include <stdio.h>
  35. #include "types.h"
  36. #include "hdstruct.h"
  37.  
  38. struct global_vars
  39. {
  40.     boolean test_mode;
  41.     boolean verbose_mode;
  42.     boolean debug_mode;
  43.  
  44.     boolean override_multiple_boot;
  45.     boolean override_bootable_flag;
  46.     boolean override_rootdir_entries;
  47.     boolean override_large_fat;
  48.     boolean override_small_fat;
  49.     boolean override_media_descriptor;
  50.  
  51.     int drive_number_cmdline;
  52.     int partition_number_cmdline;
  53.     dword new_start_cylinder_cmdline;
  54.  
  55.     FILE *debugfile;
  56.     void open_debugfile (int argc,char *argv[]);
  57.  
  58.     global_vars (void);
  59.     ~global_vars (void);
  60. };
  61.  
  62. extern global_vars global;
  63.  
  64. void printx (char *fmt,...);
  65. int getx (void);
  66. void error (char *message,...);
  67. void warning (char *message,...);
  68.  
  69. void hexwrite (byte *buffer,int number,FILE *file);
  70.  
  71. void exit_function (void);
  72. void notice (void);
  73. void evaluate_argument_vector (int argc,char *argv[]);
  74. void save_root_and_boot (harddrive *drive,partition *partition);
  75.  
  76. #endif
  77.